package edu.ubc.javascript;

import java.util.Properties;

public class Config {
	private static Properties properties;
	
	public static Properties config() {
		try {
			if(properties == null) {
				properties = new Properties();
				properties.load(Config.class.getResourceAsStream("functionSerialization.properties"));
			}
		} catch(Exception e) {
			throw new RuntimeException("Unable to open properties file functionSerialization.properties on CLASSPATH", e);
		}
		return properties;
	}
}
